package com.vcs.frm.web.form.school;

import java.util.Date;

import javax.validation.constraints.Min;
import javax.validation.constraints.Size;

import org.hibernate.validator.constraints.NotEmpty;

public class NewTeacherForm {

	private int teacherId;
	
	@NotEmpty(message = "First Name can not be empty")
	@Size(min = 0, max = 200, message = "First Name is too long")
	private String firstName;
	private String middleName;
	private String lastName;

	@NotEmpty(message = "Please provide Qualifications")
	@Size(min = 0, max = 1000, message = "Qualifications too long, Should be less than 1000 Characters.")
	private String qualifications;
	
	@Size(min = 0, max = 1000, message = "Special Courses too long, Should be less than 1000 Characters.")
	private String specialCourses;
	
	@Min(value=1, message="Designation is required")
	private int designation;
	
	@NotEmpty(message = "Date of Joining is required")
	private String dateOfJoining;
	
	public NewTeacherForm() {
	}

	public int getTeacherId() {
		return teacherId;
	}
	
	public void setTeacherId(int teacherId) {
		this.teacherId = teacherId;
	}
	
	public String getFirstName() {
		return firstName;
	}

	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}

	public String getMiddleName() {
		return middleName;
	}

	public void setMiddleName(String middleName) {
		this.middleName = middleName;
	}

	public String getLastName() {
		return lastName;
	}

	public void setLastName(String lastName) {
		this.lastName = lastName;
	}

	public String getQualifications() {
		return qualifications;
	}
	
	public void setQualifications(String qualifications) {
		this.qualifications = qualifications;
	}
	
	public String getSpecialCourses() {
		return specialCourses;
	}
	
	public void setSpecialCourses(String specialCourses) {
		this.specialCourses = specialCourses;
	}
	
	public int getDesignation() {
		return designation;
	}

	public void setDesignation(int designation) {
		this.designation = designation;
	}

	public String getDateOfJoining() {
		return dateOfJoining;
	}
	
	public void setDateOfJoining(String dateOfJoining) {
		this.dateOfJoining = dateOfJoining;
	}

	@Override
	public String toString() {
		return "NewTeacherForm [dateOfJoining=" + dateOfJoining
				+ ", designation=" + designation + ", firstName=" + firstName
				+ ", lastName=" + lastName + ", middleName=" + middleName
				+ ", qualifications=" + qualifications + ", specialCourses="
				+ specialCourses + ", teacherId=" + teacherId + "]";
	}

}
